﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TVXD23.Web.Models.ViewModel.EmployeesModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Tạo mới
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<link href="../../Content/css/commonCss.css" rel="stylesheet" type="text/css" />
    <h2>Tạo nhân viên mới</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Thông tin</legend>
       
            <div class="editor-label">
               Họ và tên:
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.FullName) %>
                <%: Html.ValidationMessageFor(model => model.FullName) %>
            </div>
                        
            <div class="editor-label">
               Giới tính:
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Sex) %>
                <%: Html.ValidationMessageFor(model => model.Sex) %>
            </div>
            
            <div class="editor-label">
                Ngày sinh:
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Birthdate) %>
                <%: Html.ValidationMessageFor(model => model.Birthdate)%>
            </div>
            
            <div class="editor-label">
               Số ĐT:
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.PhoneNumber) %>
                <%: Html.ValidationMessageFor(model => model.PhoneNumber) %>
            </div>
            
           <div class="editor-label">
                Địa chỉ:
            </div>
            <div class="editor-field">
                <%: Html.TextAreaFor(model => model.Address,2,80, null)%>
                <%: Html.ValidationMessageFor(model => model.Address) %>
            </div>
            
            <div class="editor-label">
                Email:
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Email) %>
                <%: Html.ValidationMessageFor(model => model.Email) %>
            </div>
            
            <div class="editor-label">
               Ảnh 3x4
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ShortImage) %>
                <%: Html.ValidationMessageFor(model => model.ShortImage) %>
            </div>

             <div class="editor-label">
               Nghề nghiệp:
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Jobs) %>
                <%: Html.ValidationMessageFor(model => model.Jobs) %>
            </div>
            
            <div class="editor-label">
                Kỹ năng:
            </div>
            <div class="editor-field">
                <%: Html.TextAreaFor(model => model.Skills, 20, 80, null)%>
                <%: Html.ValidationMessageFor(model => model.Skills) %>
            </div>
            
            <div class="editor-label">
                Ngôn ngữ:
            </div>
            <div class="editor-field">
                <%: Html.TextAreaFor(model => model.Languages, 2, 80, null)%>
                <%: Html.ValidationMessageFor(model => model.Languages) %>
            </div>
            
            <div class="editor-label">
               Giáo dục:
            </div>
            <div class="editor-field">
                <%: Html.TextAreaFor(model => model.Educations, 20, 80, null)%>
                <%: Html.ValidationMessageFor(model => model.Educations) %>
            </div>
            
            <div class="editor-label">
               Kinh nghiệm:
            </div>
            <div class="editor-field">
                <%: Html.TextAreaFor(model => model.WorkExperiences, 20, 80, null)%>
                <%: Html.ValidationMessageFor(model => model.WorkExperiences) %>
            </div>
            
            <div class="editor-label">
                Phòng:
            </div>
            <div class="editor-field">
                 Phong ban :
                <select name="departmentId">
                    <%foreach (TVXD23.Web.Models.ViewModel.DepartmentsModel item in Model.listDepartment)
                      {%>
                    <option value="<%:item.departmentId %>">
                        <%:item.Name %></option>
                    <%
                      }%>
                </select>
               
            </div>
            
            <p>
                <input type="submit" value="Lưu thông tin" style="height:30px;width:100px;"/>
            </p>
        </fieldset>

    <% } %>

    <div>
          <%: Html.ActionLink("Quay về danh sách", "Index") %>
    </div>

</asp:Content>

